Functionality

Removed Mainv2 added main loop and better function names