Added a test file
Fixed misc. crash-causing bugs

Now that I can test the module, some bugs have been caught.
Rewrote __index metamethod

Now it has less calls to rawget.