Applied code formatting and checkstyles