fixed readme example, minor code cleanup, bumped version