Addition to pull request #39

Removed README from rebased master.
Removed unused code.
Moved record declarations to .hrl file