changed permissions on some functions and added some get functions.