link to file instead of raw-file, add documentation, remove console.log usage