added create.histogram function including documentation, updated files to include create.histogram function