Added formatoptions and reorganized the file.