initialized empty messages array in controllers
Merge pull request #7 from dcw303/master

Change controllers sample code to initialize messages array