Moved to sane logging solution, cleaned up option parsing, fixed segfaults