added startup Error log, some small fixes