Improved Input

Added comments for functions
Improved loading function
Added function to load from data (WIP)