Debian support added

Added Debian support and created tests. Tested on Debian 7