fix a lot of stuff, add license and readme