add version fun and automate docs generation