Verified loading of defaults and preferences. Removed file building code.
Update from master.
Re-factored createReport method. Also added checking for overwriting of file.