Use absolute url since npm doesn't like relatives
Updated comments
Added tests