remove dependancy on gridExtra and sorted out NAMESPACE