Fixed warnings and made compiler more verbose