some changes and auto documetation added