Removed error_log statements I mistakenly left in while debugging; corrected spelling error