Modified addComment and getThread. Use sorted set instead of list for thread.