fixed bugs
added advanced preferences
carried out tests