more plotting scripts
add in simple documentation in coag.cpp