i took a stab at improving it but don't know for sure if it's any better now since i come from a programming background as well