code and readme corrections