re-wrote the popen part, added signal handlers, re-worked the available options for charts.d