updated readme and fixed more bugs