minor code changes

-removed extraneous variable declarations
-changed to portable sleep method
-automatically center logo