ADD logo function

adds in a logo function and cleans up the code some more