Some refactoring and improvements

I have made some refactoring to the Comment-related functionality because I have started working on a solution for #62 (implementing the /comments for a submission functionality).

Along the way I found some things that had to be changed to be more intuitive, so I made some improvements here and there.

No tests were written because no new functionality has been added.