Add some more prototypes
Update Makefile
Fix modules
Working library structure
Add stream/cursor stuff
Update main function