cleaned up, updated readme and added licence