impelmentation; bug fixing of scripts
cleanup AffineTransform class