major refactoring

to standardise the strings, keys, etc in Constants class.
to accomodate the new file storage format
to accomodate the new data types that we store in the data structs

Signed-off-by: Nicholas Lum <nicholaslum444@hotmail.com>