added some functions
Added a misc file for code that may be merged in later.