Created a main function in sct_pdb_analysis. Corrected flaws that this revealed in outher functions.