darkness implemented. bug fixes in functionality.