Implemented proper cloning. Discovered AutoClosable. Fixed brace positions.