migrated drawing code into lib

- migrated drawing code into lib
- wrote new encapsulation method to handle nodes
- broke line drawing…