Merge pull request #1 from greenlion/master

update
refresh: tiny optimizations
made refresh() readable
Merge pull request #65 from santec/master

Thank you for the code cleanup contribution