added coding guidlines, improved code readability and fixed small bugs
merged linting branch
Merge pull request #32 from garthenweb/styleguid

Added coding guidlines, improved code readability and fixed small bugs