Added license, updated readme and some minor fixes.