tweaks

full license compliance
more comments
huge cleanup