Updated all code to SNAP version 0.16alpha.27
Mode changes