added parent, filename and extension queries to path
added missing filename function