removing some unused code and adding api documentation