fixed several tiny issues, and added comments