fixed device setting bug, cleaned poisson param from scatter c code