Wrote some test code into main for particle and crystal