add controller.cpp and .h
Merge branch 'master' of https://github.com/cast0r/p1