Added possibility to call the program with a second parameter being the source picture
Added notes pictures and refactored some code