code overhaul vol. 1

cleaned up distribution, moved headers to hrl files, version bumped to
1.1.0, completely rewritten sub module to be passive (active version
WIP)