added /lib resource folder, insituted checks in Config class to prevent methods called from __construct() executing each time the class is passed as a reference.