small changes to code (used spaces not tabs), and edited some other posts
changed some of the instructions