Some update

-Added option to choose the drawing range
-Removed unused references