Fixed some typos.
Made the code linux-friendly!