major refactor of initial functions - changed how piles specify files from a command to an actual lambda expression, offering -way- more flexability