Made this a header-only library for easier use in other projects