Moved functions and types to files to better denote what they relate to
go fmt across packages.

Note to self: Remember to go fmt before commit
Renamed Error variables to better suit other error constants naming in other packages