now pure data is started automatically from app.py
added function to check if pd already running and start and stop are now one function
app starts pd now if not started automatically