adding 'fork()' API method. closes #16.