commiting old code from sourceforge (http://metal-memenc.sourceforge.net/)