Made the script work for any file name and added documentation