Add motor.c to sources.
Move motor initialization code to motor.h and motor.c.
Add .gitignore.