adding basic lib functionality

Signed-off-by: RJ garcia <rj@bighead.net>