dont need -#!/usr/bin/perl on module
added some tests
added some tests
clean up some of the worst stuff