Fixed up some string processing, added basic word-wrapping and terminal width detection and started the basic config file setup.

Signed-off-by: Madison Kelly (digimer) <digimer@alteeve.ca>