Even more API clean-up

Added "modules" and some context APIs

improved documentation, TODO, English

fixed the hack in the compiler