updated documentation. bump to 0.4.0 due to API changing