added category enumeration and scalawerks app; refactored scala class, object and test