updated Rest functions. still need some descriptions and all ex codes