Changed the method of calculating vectors, cleaned up. Added compressor functionality.