Moved main code into folder