Improve YARD documentation, rework constants