Version 0.4.0. New API. Existing docs and samples updated