You know Ravencroft, this isn't the, "Do My Homework For Me," megathread. The majority of your problems have been syntax errors or simple errors on boundary conditions. It makes me question whether you've even been investigating the issue before asking for help.