Integrated alpha helix and beta sheet analysis into one function