Added some more documentation and cleaned up unused R methods like merge