Created a SourceFile object class, and all functions will be added to it.

Also implemented some to_json methods, so we can easily convert the classes to
JSON :)