Starting HGApi

Created also an api or splitting strings into parts