Rest analysis

Addresses #9 #10