Re-wrote data cleaning function

convert_all() works with pandas version 0.9.1, and more general (kind
of).