Fully functional

Added default fallback value option
Finalized code