first commit, handful of functions

Signed-off-by: Peter <pitzy@siteup.ro>