better module pattern
Merge pull request #37 from voronianski/modulepat

better module pattern