continued the implementation of missing residues: added new methods to the Residue class, fixed some bugs, shrinked code