remove more unused code
refactor line drawing code to separate method and add comments
add second layer