typo
refactored tags; ability to add global tags
deleted useless example
refactoring; returning values for tests
using fsockopen() instead of socket_create()

- socket_... function may not be available
added tests