Bug fix and documentation for guidelines.js