Various changes, including improved memory handling and correcting a penalty error.
/skn