Migrating to lambda.r and cleaning up interfaces
Implemented new API
Added unit tests