Added submission form, moved template to index.html, several bugfixes