Fixed logging to correctly record whether log was loaded or not. Added count of #lines to log.