Implement basic recording
Make recording directory configurable