fixed typo on home page and cleaned up code