Deleted code that wasnt being used and made code corrections