Clean with local median
Added lacosmic iterations
Remove unused lacosmic functions
Add mask_image to lacosmic
Recompute error_image for each iteration
Minor changes and updated lacosmic documentation
Added lacosmic tests