Add dependencies for junit and json in pom.xml
Add json file communications and revisited some constructors

Changed some constructors so they rely on each other.