added comments. changed some permissions from public (needed for testing purposes) to private (as appropriate).