Removed debugging section.
Fixed warnings.