Refactor Threadpool class

Part of #4 issue.
Use spaces instead of tabs!

Run astyle on files on this commit.