Moved split(std::string, const char) function to separate source file instead of defining it in the header
- Some very minor changes to code formatting
- Added exceptions
- Fixed compile-time errors (had a bunch of wrong type definitions)