Add dectest program.
Some fixes..