move prototype to own file and start simplifying force-directed-graph