added docs. bugfix in process_logs