Added function attributes (for export)
Added exporting of non-main functions :D
Tests: Added test/demo for extern spl :D