Complete rework! Added Debian support and other features.