Added packages and MessageObj class

Added package declarations to each class for organisational purposes.
Also added a MessageObj class that we can use for each message that gets
sent.