Search implemented

Search feature successfully implemented, some minor bug fixes too.