cleaned up docs; added message class; made clean_values trim