Fixed functionality after a change in Config class and other small improvements.

Improved documentation
Made $this->db->connect() call optional in the PdoConnection