Changed buggy toLuaString methods
Minor changes at SDAE sampling