recommented code and prepared it for the final submission