Import the source code from svn project.

Initial import. This project was originally hosted on a local svn server and now its going into a github repository. All files are imported but the history will be left behind.
Fixed a bug on a switch case in the Motion.cpp file