some style fixes
rewrite of latexit