updated readme, added tests for 'apply'