added rudimentary comments