Added @handle_type_error wrapper to form_to_params().
Added some documentation.
Fixed the nonsense with .readlines() call.