Made tied weights possible for GSN, added a new training mode in cost
Changes to GSN to make easier to modify