go fmt, implemented list command
fix oob, implement duplicate checking