implement RWS monad, add namespaces.
apply PSR-0 so that composer autoload can work.