Working on Attach() function, Fixed function signatures, added very basic test, changed some struct signatures