more code cleanup
code cleanup. added ascii art :)
code cleanup including directory_settings function cleanup.