Updated config parsing.

This update deals with scenarios where the config hash has an opening bracket on a separate line.

Also added some throws for when things aren't parsed correctly or nothing is parsed.

Removed  as it is unused.