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.