check in code and output files with figures