change ring number sto ints instead of caharacters to ease downstream identificaiton
refactor bond detection code into simple standaolne funcitons. i repeat a few things so this may sacrifice speed but for now clarity is more importnat
cleanup the previous set of functions