Changed GUI structure, improved implementation  and added some features.