Cleaned code
Lless css manipulation, use switch instead of multiple if, throw exception for invalid value
Revert bad .idea inclusion
Revert to tab, and indent
Revert to tab, and indent
Updated minified version
Merge pull request #1 from Korri/cleaning

Cleaned code