provide forgotten default for limit
fix a bunch of forgotten ID attributes and labels
new line stuff
move to php5 constructor. Fixes #7