Cleaning code. Adding comments, references and annotations when needed.