added documentation, improved relativization of paths