Integrate some library functions

Sure, if you don't think this file is useful for model builders it might be best leaving out of the standard library. I'm happy either way, it seems like that's what you're interested in right now and it isn't something I've been paying much attention to, so I'm happy to let you own this :)