Added JunctionPoint class, fixed even more issues with the copy function