Main Controller Preparing

Main Controller preparing, added basic functions