moving library code '.cpp' and '.h' files to Motor dir