Working on error checking, edge wieghts for REPL