Added version API. Improved documentation.