Add basic integer loading

Only loads in int32 and int64 types. Others fail for now.
Code cleanup

Renamed some files; moved some definitions to header file. More cleanup to come