Implement bugfixes and remove debuginfo