Code refactored to use property.
Added affine transformations.
Random datasets methods implemented.