Technically finished tutorapp.php

needs to be debugged