251: replaced curve255 with newer/optimised version, and a bit of JSDoc love