added test1
use posix mode_t type
reorganized Environment interface
added transactions