Progress reporting fixed
Initial automatic memory management added