More relevant for project

Removed unneeded code, added message struct and enum and made a bunch of
comments