configuration handling functions and variables added. defined register addresses. more work on read and write functions