Added boolean
Header corrections

Fixed broken API, removed redundant include directives
Improved array support
Improved constructor

code is optional and fully type checked