added features to pgnn.lua
fixes for [LM,MLP]Factory
initial commit for pglm.lua