Buffer bug fixed, incomplete command implementation and some tweakes