Moved tests around
Added check.sh
Changed message type from int to its own type