Simplfy Replicate.
Gofmt.
Merge pull request #7 from mdakin/master

Simplify Replicate.