add toXml method, optimized code
improve validation method
add docs
adjust methods
fixed docs
add todo helpers