fixed bugs in samples 1-21 and add signature to url for request