Removed val from case class parameters.

Reindented file
Refactor

Did some reindenting
Moved some methods around
Changed silly String to Array[Byte] transformation