This version works but lacks documentation and needs a thorough clean-up.
Attach a file by drag & drop or click to upload