Fixed server-side bugs, added graph format