Initial commit of STI standalone repository
Add unit tests and fixes - part 1