cleanup + functions extraction + preference to set camera_far_plane value in addons panel