Copied static library straight over
Added some helper methods.
Add the static library
I think I removed a line break but the diff isn't clear.