Cleaned up compilation warnings and unhelpful debug logs