Merge pull request #685 from am11/master

Code: Analysis fixes and formattings
CSS: Check for snapshot length. Fixed #687
Intellisense: Acknowledge DataContract attribute.
Fixes #675.