closes #153 many improvements to type layer (test, docs, refinement)

Sounds good to me.  I'll modify to #163 to include selecting a format, adding the eclipse profile xml to the project, and running reformatting all files with new format.