Better dependency management, merges time into sys

Also adds a better doctoring for the module.
Renames funclib to func
Added with statement support

TODO: test is currently old and outdated—needs other, larger updates
Changed a variable name

interobj to out