fix issues #15 #18 #19. change absolute import to relative imports