refactor molecule module into subpackage

the molecule module has been restructured into a subpackage to more sensibly organize code