Rearranged functions for organizational purposes
Expanded documentation