added summary_as_hash method
corrected and added more summary_as_hash method for use with rest