add operator ==, != for Factor. add operator == for Function. some change GUI
minor code changes. adding comments