Reduced redundancy in code, fixed a few problems