Fixed plist discovery.
Fixed logging functions and error messages.