fixed a bug introduced by debugging and updated README