added Network dump and load functions, added get_representation which gives output at various layers of the network