ITF1788 source code

Added the source code for ITF1788, along with several changes, see the commit messages