1) Fixed delay() call.
2) Fixed error handling for some objects.
3) Updated comments for many, many functions.