Adding License file
Making a few functions a little more testable
Adding a couple spec tests