Documentation modifications, added mostly-functional getopt for no reason.