rename p and k into iteration
add tests for frank wolfe pickling and batch version.