Initial checkin of code from msscodefactory.sourceforge.net