Add some print lines to help debug and comment them.
Add hierachical interactions interface to Java.
Add hierachical interactions tests.