save
fixed leaks
added kill server command
added some ruby test cases and fixed bugs in parser