refactored lib code
refactored test for tape
worked out dev deps