Use method instead of class variable

The method checks to see if @@messages is initialized and returns an empty array if not, so we should always use that.
Merge pull request #11 from jackbot/use-method-not-class-variable

Use method instead of class variable