fix variable names in API.md and properly document detectRetina from the option object to tileLayer. Closes #571