minor refactoring.  Backend setup complete except for plugging in edit distance calculator