updated serialize.java, created main() that initializes paths