add TODOs
write JavaDoc for TaskEnvironment
minor reformatting