code styling and added TextEntry class