updated sample for sinatra: added input documentName