added comments to document EOF function at /src/core/parser.js
API documentation designed based on src/display/api.js