added code for better memory cleanup
Need to fix issue with secondary structures linked list
fixed the problem with the linked list, now memory cleans up better when destroying the protein model