Control form added

some optimizations
Many changes

Some new features, bug fixes