added some much-needed comments