Added trainable lua_src, all old trainable methods will be pure lua