Fixed some resizing issues and commented code