Added pool monitoring support for nicehash. Fixed small ordering issue with variable declaration on multipool code