General refactoring of Main
Added basic HTML template