changed file receive and send codes to work in small buffer
version 0.1