Updated documentation, added new logs, fixed compiler warnings.