Cleaned up node code a lot (pulled out all original EA code that wasn't being used) and added lots of comments