Support for R16B

The following changes have been made to satisfy the R16B
compiler:
- type definitions were moved from .hrl to respective .erl files;
- leading '.' were removed.