histology analyser - refactoring etc..