fixed a few bugs, added parsely functionality (need to refactor to use api2 tho), refactored and restructured codebase a bit