giving up and adding try catch block.
updated version.
another shot at paintLine bug, adding keywords.txt
save preferences everytime
search for missing imports in contrib libs
added doc listener finally.
fixed error check toggle.