Added linear extension functions and documentation