added new funcs
fixed a few bytes
fixed dynamic and function errors