fixed some formating and added terminal clears for increased readability