Add spaces, comments and replace attr_reader for understandable position
add comment for mistery
add test for buf_file
fix to replace obsolete URI.escape(escape) with URI::Parser#escape(unescape)
refactor to remove dup code