Cleaned up interface for freezing distributed array

Example usage is shown in simple_example.cpp
Added README