Options Function

-Created options function
-Partially implemented the option "write new file"
-Several errors that will be fixed when I have more time