Clean up code a bit; add readme & license