Support for R16B

The following changes have been made to satisfy the R16B
compiler:
- type definitions were moved to from .hrl to respective .erl files;
- leading '.' were removed.
Merge pull request #14 from horkhe/master

Support for R16B - thanks @horkhe