Documenting

Placed all types documentation in its own file to simplify readme
Added encoding usage to readme