Refactoring

Functionalising plotting
Moving css to external stylesheet