Added more functionality to root() which now checks if there is any difference between document root and __FILE__. Also added strnstr which checks through a string for an nth occurance of a needle