new docs and slight modifications to main programs to make them more versatile.