Restructured and finished bilateral filter
Corrections to bilateral filter
minor changes to main