Fixed more bugs, added some documentation, killed off redundant code