Alright since the current GM Library is pretty outdated and missing some functionality, I made a second version for you all to use. I tried my best to make it as simple, optimal, and functional as possible. If you have any suggestions/requests/complaints/bugs please let me know and I'll fix them up ASAP.
You can test the functions via Quick Play and study the code via Download, here: http://www.gamejolt.com/open-source/games/other/game-maker-gj-api-library/8710/
GOOD LUCK! :D