add message factory
Merge branch 'iss2' of https://github.com/chuck1/GRU into iss2