add gitignore file
add struct to encapsulate a replica set server, and add trim function