Initial version of the library

Extracted from a project, I didn't JUST code all this $h1t