[x] Add 'Use case' section to major functions
[x] Incorporation of features and functions by Brice
[x] Bug fixes and update to existing functions