Add relative paths and onDispose()

Two commits here, the first just adds in relative paths and the second adds in the missing 'onDispose' override.