Added return value to the register method for easier usage:
Merge pull request #4 from Schniz/register-return-value

Added return value to the register method for easier usage