Added debug option

Only prints status when '-d' argument is passed with the script