Added flake8 style checking.
Added docstrings and import-order to flake8 testing.
Docstrings.
Implemented doctest example for shape property.