added comments and fixed speed issues in field and streamedField