Updated readme and fixed test example