conversion process specified more accurately
code polishing and commenting