added peeking, new client handling via channels, fixed command bugs