changed a couple of variables. added serial read.