Setup structure for reading, writing and converting immediate files. Added immediate file mode. Fixed debugging preprocessor; added debug prints for immediate file conversion/read-write.