Refactored setting definition system. Resolved #159.