JAP code -- lots of updates

Streamlined main.cpp
Updated documentation in README.txt