code cleanup: renaming functions; adding prototype code for later development; no...