Cleanup warnings

This should cleanup all of the warnings i could find. If there are more please let me know.