bug fixes and secondary structure plotting