added plot title
moved definitions to src file