update some loop logic for speed/compatibility, fix readme typo
release 0.2.4