Fixed bug in generator for boolean model vars.
Added phpdocs to entity api classes.