About functions

Most of the codes used here were based on open-source software.Some
small changes have been made so that the functions can be operated in Qt
environment.