updates to biocro module
minor code refactoring for clarity