Documentation for the code in src, linear