Added some comments to fone.js and removed unused code