This commit closes #1. Added support for registering custom display mode via code.