Simple option handling and file opening, lots of not-really-useful-yet stuff