Typos corrected and better documentation