Changed some addresses to constants. Added more parsing to 'createFile'.