Fixed a missing \n, added print_opts() function, other magical stuff