Fixed the tag parser, some string handling functions and config parsing is now faster