added static to the internal functions

prevents being called from external files
Rename of partitions [per -> on] rank variable
added self documentation to io.h