Add check to make sure article is in mainspace

(also normalize tabs and spaces)
Merge pull request #2 from theopolisme/master

Add check to make sure article is in mainspace