Changed preprocessor directives, added code comments, changed images names