More refactoring. Things work... don't plan on losing that.
Did a bit of refactoring on the code to prevent things getting too messy. Converted all code to use bitarrays instead of strings when possible. Cleaned up naming convention a bit.