minor cleanup and reformattnig

This is just a bit of reformatting to make things a bit more readable
and a bit more understandable as to what lives where.
Add the Apache2 license
reformatting tmp
add a minimal readme to the project