Refactored library API and renamed to matched twitter API