Added autofill functionality
Added line function to XPM class
Added line example