Added debian packaging and some performance tuning