fixed some minor errors and added comments