The templates are intended as just that, templates. It represents a starting point for your code where you have to add your own logic and control for your robot. A tool that might help since you are just getting started at this is RobotBuilder. It actually writes more of the boilerplate code for your commands and subsystems and there are good tutorials and examples for it.
Generic command based programming documentation in ScreenSteps:
http://wpilib.screenstepslive.com/s/...-project-files
ScreenSteps documentation on RobotBuilder:
http://wpilib.screenstepslive.com/s/3120/m/7882
Youtube video tutorial:
http://www.youtube.com/watch?v=k7PaY...lgn vhGObeKzp
Good luck with your robot!
Brad