added COPYRIGHT again
multi arch support and renamed some variables for better use