add license
WIP basic function and test