Type refactoring and godoc reference link in readme.