Fix-up Haptics to work

And add main.cpp as a source file.