Added the position offset variable

Added a position offset attribute to the messages, enforced some line
ending standards and documented a class.