Solved bugs at join component and SDAE. Added minor improvements to cmdOpt, random search optimziation, and trainble.lua