Some whitespace cleanup.
Cleaning up the Configuration class.

Moved the segment functionality to the string.rb file.
Broke the initialization code into multiple methods.
Cleaned up the type checking code.

Made a new TypedClass class instead of re-opening the Class class.
Put some duplicate code into functions.
Code cleanup based on the Reek, Flog, and Flay tools.