Remove trailing spaces
Convert tabs to spaces
Fix coding style
Remove DoubleCheckedLocking
Merge pull request #2 from fluxroot/fix-codestyle

Fix codestyle