Activated checkstyles and fixed warnings