Fixed minor typos, changed tabs to spaces for consistency