debugged disc data writing; cube alignment