Added a readme, fixed a bug