refractored code 
testing modules now
adding docs
added licence file