minor changes to program. This time it works

Also the outputs are included.