fixed several bugs, formating and log levels