update license to MIT, misc cleanup
start documenting