some doc cleanup and added -u and -f switches to main.c