added logging and did some cosmetics

moved and formatted some texts