fixed readme for install instructions, refactored tests