Replaced main.pro with main.h and added includes.

fixes #141