Some minor tricks added to SDAE and random optimization