added comments to two beanshell scripts and refactored EacGateway.cs