updated readme and fixed a stupid bug because I'm an idiot