Refactor Threadpool class

Part of #4 issue.
Member variables should start with m