added comments mostly