Cleaned up previous code and added the beginnings to the chemistry package.