Fixed resolution bug, updated indentation to spaces instead of tabs