GUI added & Mining method edited