updated comments and enhanced wall detection