added procedures and functions

Signed-off-by: Laentir Valetov <laex@bk.ru>