Got rid of unused namespaces.
Implemented a way to specify thread count through command options