clean up and add comments

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