updated readme and fixed compilation