Refactored core API to a package; Updated tests
Fixed function prototypes.
Merge branch 'fancy-api-refactor' into fancy-api