added getPaths() functionality, fixes #2, ready for 0.7