initial tutorial done, fixed issues with authentication, separated all code into modules.