changed file permissions
implemented new methods for IO with device
new version with updated and working terminal parameters
new version of test code