changed line endings
refactored autoload to accept second param of options if first param is a url string