move path specifications to macros
move GPU/CPU switching from 'forward' to 'test', 'forward_parallel' is no longer used
add check result function
corrected problem in serial code, now the results are consistent.
Resolved cpu gpu output inconsistency. Add Checkouput functionality.