-Fixed a bug when cwd is not a script directory.
-Changed to scale with '-l 0' option when get warning.
-Added pass through options for training.