Kill tail during cleanup and clean up and add comments

add something to kill tail process on cleanup.
also move setting prompt command to here from harbormaster
removed some deadcode.
added comments.
added a more simple check to *UpCheck to prevent random command errors and to ensure output is correct
remove some useless binds