add "clean" target, add mkdir commands
added "close_ptw_file"