Added closed/open correctly and fixed small stuff. EVERYTHING SEEMS TO WORK FROM HERE