Added support for spin-polarised calculations

File now checks whether the calculation was spin-polarised or not.
Does this by testing the first data line of the DOSCAR; if it is shorter than 5 items it is not spin polarised.
Outputs dos.dat and pdos.dat differently depending on value of spin_polarised.
Merge pull request #1 from baztastic/master

Added support for spin-polarised calculations