Fixed most warnings in project