cleanup logging
split long if statement conditions into predefined booleans
add convenience methods for checking message status
Merge pull request #40 from dpcasady/cleanup

Cleanup