adding support for static calls and public var for error document
updating readme for static stuff and some other tweaks.