comments added. minor fixes