committing a ton of work

At the moment the reason submitting and viewing part are functioning, but not
quite yet the way they are supposed to in the end.
I am not sure what else falls under this commit anymore, going to commit more
frequently from now on.