moved logic into modules, updated README, bumped version