Adding function to parse version string.
Adding some documentation.
Adding test macros.
Adding proper function for libraries, some documentation.